ISlave.ReadRegister method
Reads data from an EtherCAT slave's register.
Namespace: IntervalZero.KINGSTAR.Base.Class
Assembly: IntervalZero.KINGSTAR.Base.Class (in IntervalZero.KINGSTAR.Base.dll) Version: 4.4.0.0
Syntax
IKsCommand<byte[]> ReadRegister(
int offset,
int length
)
Function ReadRegister(
offset As Integer,
length As Integer
) As IKsCommand(Of Byte())
Parameters
offset
Type: int
The offset of the register to read.
length
Type: int
The length in byte of the data to read.
Return value
Type: IKsCommand<byte[]>
Returns the states of a method and a byte array.
Remarks
Used to check a slave register during slave development.
IMPORTANT: This method is meant for slave development only. Otherwise, do not use it.
NOTE: This method uses a slow access method that should not be called in the cyclic callback, or it causes a deadlock.
Usable EtherCAT states
ecatInit, ecatPreOP, ecatSafeOP, ecatOP
See also